<!--<?php
require_once(uTemplate::printEot('header'));
//require_once(uTemplate::printEot('user_appleft'));
print<<<EOT
-->
<script language="javascript">
var transmitAction = '{$USCR}';
</script>
<style type="text/css">
.headTrgB{border-bottom:9px $uskin_homeTop solid;}
/*兼容:版本之前首页与应用的区别*/
</style>
<div class="homeBg cc">
	<div class="homeCont fl">
<!--
EOT;
require_once uTemplate::printEot('weibo_model');
$o_weibopost != '0' && $weiboModelTemplate->post('filterweibo');
if ($o_weibopost == '0') {
print <<<EOT
-->
		<div class="feedLive cc" id="J_feedLive">
<!--
EOT;
$weiboLiveList && $weiboModelTemplate->live($weiboLiveList);
print <<<EOT
-->
		</div>
<!--
EOT;
}print <<<EOT
-->


<!--新鲜事同步提示-->
<!--
EOT;
if ($db_sinaweibo_status) {
	if (!$isBindWeibo && !$_COOKIE['ifShowSinaWeiboBind']) {
print <<<EOT
-->
		<div id="syncSinaWeibo" class="spaceTip cc" style="margin:10px 15px 0;">
			<a href="javascript:;" class="adel" onclick="SetCookie('ifShowSinaWeiboBind','1');displayElement('syncSinaWeibo', false);">关闭</a>
			<span class="mr10 cp" onclick="self.location='profile.php?action=privacy&t=weibo';">新鲜事可以同步新浪微博啦～立即设置，随时随地的同步新鲜事，你的地盘你做主哦</span>
		</div>
<!--
EOT;
	}
}
print <<<EOT
-->
<!--end-->

		<div class="p15">
			<h5 class="h5 cc">
            	
<!--
EOT;
if ($o_weibopost != '0') {print <<<EOT
-->
				<a href="javascript:;" class="fl feedsAll" onclick="var frm = document.getElementById('feedAdmin');frm.style.display=((frm.style.display=='block')?('none'):('block'));" hidefocus="true"><span>&nbsp;</span>新鲜事筛选</a>
<!--
EOT;
} else {print <<<EOT
-->
				<a href="javascript:;" class="fl feedsAll" hidefocus="true"><span>&nbsp;</span>新鲜事筛选</a>				
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
$db_menuinit .= ",'td_setMenu' : 'menu_setMenu'";
print <<<EOT
-->
				<div class="aset fr" id="td_setMenu"><img src="u/images/tedit.gif" alt="设置" /></div>
				<div id="menu_setMenu" class="feedDown" style="display:none;">
					<em class="fr"><img src="u/images/tedit.gif" alt="设置" /></em>
					<div class="c"></div>
					<a href="profile.php?action=privacy">隐私设置</a>
					<a href="profile.php?action=privacy&t=weibo">新鲜事设置</a>
				</div>
				<a href="apps.php?q=weibo&do=attention&page=1" onclick="return weiboList.filterWeibo(this.href);" class="fr mr10" style="margin-top:4px;" title="刷新一下可能有新鲜事"><img src="u/images/refresh.png" /></a>
				<a href="apps.php?q=weibo" class="fr mr15 gray" title="点击进入我的新鲜事">我的新鲜事</a>
			</h5>
<!--
EOT;
if ($o_weibopost != '0') {print <<<EOT
-->
			<div class="feedAdmin p10" id="feedAdmin" style="display:none">
				<table width="100%">
                <form id="filterWeiboForm" name="filterWeiboForm" method="post" action="apps.php?q=weibo&ajax=1"><input type="hidden" name="do" value="filterweibo"/><input type="hidden" name="page" value="1" id="page"/>
					<tr>
						<td width="50">关系：</td>
						<td>
							<label class="mr20"><input name="filter[relation][self]" type="checkbox" value="1" checked/>&nbsp;自己</label>
							<label class="mr20"><input name="filter[relation][friend]" type="checkbox" value="1" / checked>&nbsp;好友</label>
							<label class="mr20"><input name="filter[relation][attention]" type="checkbox" value="1" / checked>&nbsp;关注的人</label>

						</td>
					</tr>
					<tr>
						<td>来源：</td>
						<td>
							<label class="mr20"><input name="filter[source][article]" type="checkbox" value="1"  checked/>&nbsp;帖子</label>
<!--
EOT;
if($GLOBALS['db_dopen']){print <<<EOT
-->	
							<label class="mr20"><input name="filter[source][diary]" type="checkbox" value="1"checked />&nbsp;日志</label>
<!-- 
EOT;
}if($GLOBALS['db_phopen']){print <<<EOT
-->
							<label class="mr20"><input name="filter[source][photos]" type="checkbox" value="1" checked />&nbsp;相册</label>
<!-- 
EOT;
}if($GLOBALS['db_groups_open']){print <<<EOT
-->
                            <label class="mr20"><input name="filter[source][group]" type="checkbox" value="1" checked />&nbsp;群组</label>
<!-- 
EOT;
}if($GLOBALS['db_sinaweibo_status']){print <<<EOT
-->
                            <label class="mr20"><input name="filter[source][sinaweibo]" type="checkbox" value="1" checked />&nbsp;新浪微博</label>
<!-- 
EOT;
}print <<<EOT
-->
						</td>
					</tr>
					<tr>
						<td>类型：</td>
						<td>
							<label class="mr10"><input name="filter[contenttype][string]" type="checkbox" value="1" checked />&nbsp;纯文字</label>
							<label class="mr20"><input name="filter[contenttype][img]" type="checkbox" value="1" checked />&nbsp;含图片</label>
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<span class="btn4"><span><button type="button" onclick="getWeiboList('filterweibo', 1, 'weiboFeed');">筛选</button></span></span><span class="bt2"><span><button type="button" onclick="displayElement('feedAdmin',false);">关闭</button></span></span>
						</td>
					</tr>
                </form>
				</table>
			</div>
<!--
EOT;
} else {print <<<EOT
-->
			<div class="feedAdmin p_lr_10" id="feedAdmin">
            <form id="filterWeiboForm" name="filterWeiboForm" method="post" action="apps.php?q=weibo&ajax=1">
            <input type="hidden" name="do" value="filterweibo"/>
            <input type="hidden" name="page" value="1" id="page"/>
				<table width="100%">
					<tr>
						<td>
							<label class="mr10"><input name="filter[relation][self]" type="checkbox" value="1" checked/>&nbsp;自己</label>
							<label class="mr10"><input name="filter[relation][friend]" type="checkbox" value="1" / checked>&nbsp;好友</label>
							<label class="mr10"><input name="filter[relation][attention]" type="checkbox" value="1" / checked>&nbsp;关注的人</label>

						</td>
						<td>
							<label class="mr10"><input name="filter[source][article]" type="checkbox" value="1"  checked/>&nbsp;帖子</label>
<!--
EOT;
if($GLOBALS['db_dopen']){print <<<EOT
-->	
							<label class="mr10"><input name="filter[source][diary]" type="checkbox" value="1"checked />&nbsp;日志</label>
<!-- 
EOT;
}if($GLOBALS['db_phopen']){print <<<EOT
-->
							<label class="mr10"><input name="filter[source][photos]" type="checkbox" value="1" checked />&nbsp;相册</label>
<!-- 
EOT;
}if($GLOBALS['db_groups_open']){print <<<EOT
-->
                            <label class="mr10"><input name="filter[source][group]" type="checkbox" value="1" checked />&nbsp;群组</label>
<!-- 
EOT;
}print <<<EOT
-->
						</td>
						<td>
                        	<label class="mr10" style="display:none"><input name="filter[contenttype][string]" type="checkbox" value="1" checked />&nbsp;纯文字</label>
							<label class="mr20" style="display:none"><input name="filter[contenttype][img]" type="checkbox" value="1" checked />&nbsp;含图片</label>
							<span class="btn4"><span><button type="button" onclick="getWeiboList('filterweibo', 1, 'weiboFeed');">筛选</button></span></span>
						</td>
					</tr>
				</table>
                </form>
			</div>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
$weiboModelTemplate->photoPop();
print <<<EOT
-->
			<script type="text/javascript" src="js/pw_weibo.js"></script>
			<div class="conFeed" id="weiboFeed">
<!--
EOT;
if ($weiboList) {
	foreach ($weiboList as $key => $value) {
		$method = $weiboService->getType($value['type']);
		$weiboModelTemplate->$method($value);
	}
	if ($weiboCount > 20) {
print <<<EOT
-->
				<div class="cc p10">$pages</div>
<!--
EOT;
	}
} else {print <<<EOT
-->
				<div class="p15 f14 tac">最近没有新动静，试试<a href="u.php?a=friend&type=find" target="_blank">关注更多人</a>，或者去<a href="apps.php?q=weibo&do=attention&do=lookround" target="_blank">最新新鲜事</a>逛逛吧~~</div>
<!--
EOT;
}print <<<EOT
-->
			</div>
		</div>
	</div>
	<div class="homeSide fr">
		<div class="infoBox">
			<div id="myFace" class="fl mr10"><p id="toModifyFace" class="tac" style="display:none;"><a href="profile.php?action=modify&info_type=face" class="s5">修改头像</a></p><img src="$faceurl" width="90" height="90" class="img"></div>
			<div class="mb20">
				<p class="f16 mb10 lh_24 b">{$windid}</p>
				<!--{$winddb[honor]}-->
<!--
EOT;
if (isset($ltitle[$winddb['groupid']])) {
print <<<EOT
-->
				<p class="mb10">身份: <a href="profile.php?action=permission&gid={$winddb[groupid]}">{$ltitle[$winddb[groupid]]}</a></p>
<!--
EOT;
}print <<<EOT
-->
				<p class="mb10">级别: <a href="profile.php?action=permission&gid={$winddb[memberid]}">{$ltitle[$winddb[memberid]]}</a></p>
				<p><a href="userpay.php" class="fr"><img src="u/images/set/userpay.png" alt="查看我的账户" /></a>UID: {$winduid}</p>
			</div>
			<div class="c">&nbsp;</div>
<!--
EOT;
if ($o_weibopost != '0') {print <<<EOT
-->
			<ul class="cc ulInfoA">
				<li class="none"><a href="u.php?a=friend&type=attention"><em>$winddb[follows]</em>我关注的</a></li>
				<li><a href="u.php?a=friend&type=attention&atype=attentioned"><em>$winddb[fans]</em>关注我的</a></li>
				<li><a href="u.php?a=friend&type=my"><em>$winddb[f_num]</em>我的好友</a></li>
			</ul>
<!--
EOT;
}print <<<EOT
-->
			<table width="100%">
				<tr>
					<td width="60">个人资料:</td>
					<td><a href="profile.php?action=modify" title="点击完善个人资料" class="cp"><div class="perCent"><i>$finishPercentage%</i><div class="perValue" style="width:$finishPercentage%;"></div></div></a></td>
					<td width="30">&nbsp;</td>
				</tr>
			</table>
			<div class="c"></div>
		</div>
		
<!-- 新浪app开通 -->
<!--
EOT;
if ($db_sinaweibo_status) {
	if ($isBindWeibo) {
print <<<EOT
-->
		<div class="pd15">
			<div class="expandApp">
				<a href="profile.php?action=privacy&t=weibo">新鲜事，就是要随时随地同步！</a><br />
				你已开通的同步方式：<img src="u/images/expand/sina_n.png" alt="sina" align="absmiddle" />
			</div>
		</div>
<!--
EOT;
	} else {
print <<<EOT
-->
		<div class="pd15">
			<div class="expandApp">
				<img src="u/images/expand/sina_o.png" alt="sina" class="mr5" />
				<a href="javascript:;" onclick="window.open('$bindSinaWeiboUrl', 'sinaWeiboBind', 'height=520, width=850, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no');">玩新鲜事，就是要随时随地！</a>
				<br />
				绑定新浪帐号，就可以同步新鲜事啦!
			</div>
		</div>
<!--
EOT;
	}
}
print <<<EOT
-->
<!--end-->
		
		
		<div class="p15">
<!--
EOT;
if($myFriends && $o_weibopost == '0') {print <<<EOT
-->
		<h5 class="h5"><span class="fr"><a href="u.php?a=friend&type=my" class="s6">更多</a></span><strong class="mr10"><a class="s6" href="u.php?a=friend&type=my">我的好友</a></strong></h5>
        <div class="ulB">
        <ul class="cc">
<!--
EOT;
foreach ($myFriends as $value) {print <<<EOT
-->
        <li><a href="u.php?uid={$value['uid']}" target="_blank" class="i"  title="{$value['username']}"><img src="{$value['icon']}" height="44" width="44" /></a><p class="n"><a href="u.php?uid={$value['uid']}" title="{$value['username']}" target="_blank">{$value['username']}</a></p></li>
<!--
EOT;
}print <<<EOT
-->
        </ul>
        </div>
		<div class="pd5 bgB mb15">
			<ul class="menu_half cc">
				<li>我关注 <a href="u.php?a=friend&type=attention" class="b">{$winddb[follows]}</a> 人</li>
				<li>我被 <a href="u.php?a=friend&type=attention&atype=attentioned" class="b">{$winddb[fans]}</a> 人关注</li>
			</ul>
		</div>
<!--
EOT;
}if ($db_job_isopen && !empty($myJobList)) {
$tmpTitle = $isApplyJob ? '可申请任务' : '我的任务';
$tmpLink = 'jobcenter.php' . ($isApplyJob ? '?action=list' : '');
print <<<EOT
-->
			<h5 class="h5"><span class="fr"><a href="$tmpLink" class="s6">更多</a></span><strong class="mr10"><a class="s6" href="$tmpLink">$tmpTitle</a></strong></h5>
			<div class="dlC mb10">
			
<!--
EOT;
foreach ($myJobList as $job) {

$link = $opLink = '';
if ('apply' == $job['operationType']) {
$buttonText = '申请';
$link = 'self.location=\'jobcenter.php?action=list\';return false;';
$opLink = 'applyJob('. $job[id] .');return false;';
} else {
if ('gain' == $job['operationType']) {
$buttonText = '领取';
$link = $opLink = 'gainJobAward('. $job['id'] .');return false;';
} elseif ('start' == $job['operationType']) {
$buttonText = (1 == $job['status']) ? '进行中' : '开始';
if ('' == $job['link']) {
$condition = $job['condition'] ? $job['condition'] : '按指定任务条件完成即可获取奖励';
$link = $opLink = "noticeJobCondition('".$job['id']."', '$condition');";
} else {
$link = $opLink = 'self.location=\'jobcenter.php?action=start&id='. $job['id'] .'\';return false;';
}
}
}
print <<<EOT
-->
					<dl class="cc dl" id="applyJob_{$job[id]}">
							<dt class="dt">
									<a href="javascript:;" onclick="$link" class="img_50"><i><img src="$job[icon]" width="48" height="48" /></i></a>
							</dt>
							<dd class="dd">
									<p class="title"><a href="javascript:;" onclick="$link" class="b">$job[title]</a></p>
									<p>
<!--
EOT;
if (!empty($job['reward'])) {
print <<<EOT
-->
										<span class="mr5">{$job[reward][title]}</span><span class="s2 f14 mr10">+{$job[reward][num]} {$job[reward][unit]}</span>
<!--
EOT;
}
print <<<EOT
-->

<!--
EOT;
if ('gain' == $job['operationType']) {
print <<<EOT
-->
									<span class="btn4"><span><button onclick="$opLink">$buttonText</button></span></span>
<!--
EOT;
} elseif ('start' == $job['operationType'] && 1 == $job['status']) {
print <<<EOT
-->
									<img class="cp" onclick="$opLink" src="u/images/ongoing.png" style="vertical-align:middle;" alt="进行中" />
<!--
EOT;
} else {
print <<<EOT
-->
									<span class="bt2"><span><button onclick="$opLink">$buttonText</button></span></span>
<!--
EOT;
}
print <<<EOT
-->
									</p>
							</dd>
					</dl>
<!--
EOT;
}
print <<<EOT
-->
					
			</div>
<!--
EOT;
}
if ($myTools) {print<<<EOT
-->
			<h5 class="h5"><span class="fr"><a href="profile.php?action=toolcenter&job=mytool" class="s6">更多</a></span><strong class="mr10"><a href="profile.php?action=toolcenter&job=mytool" class="s6">我的道具箱</a></strong>&nbsp;<a href="profile.php?action=toolcenter" >购买</a></h5>
			<div class="dlC mb10">
<!--
EOT;
foreach($myTools as $key => $value){print<<<EOT
-->
					<dl class="cc dl">
							<dt class="dt">
									<a href="profile.php?action=toolcenter&job=buy&id={$value[toolid]}" class="img_50"><i><img src="$value[logo]" width="48" height="48" /></i></a>
							</dt>
							<dd class="dd">
									<p><a href="profile.php?action=toolcenter&job=buy&id={$value[toolid]}" class="b">$value[name]</a><span>($value[nums])</span></p>
									<p title="$value[descrip]">$value[subdescrip]</p>
									<p>
<!--
EOT;
if($value[type] == 1) {print<<<EOT
-->
			<a href="profile.php?action=toolcenter&job=use&toolid={$value[toolid]}" onclick="alert('对不起，帖子相关道具请您到帖子页面使用');return false;" class="mr10 s7">使用</a>
<!--
EOT;
}else{print<<<EOT
-->
			<a href="profile.php?action=toolcenter&uid=$winduid&job=use&toolid={$value[toolid]}"  onclick="return checkset('{$value[descrip]}')" class="mr10 s7">使用</a>
<!--
EOT;
}if($value[nums] > 0){print<<<EOT
-->
			<a href="profile.php?action=toolcenter&job=sell&id={$value[toolid]}" class="s7">转让</a>
<!--
EOT;
}print<<<EOT
-->			
		</p>
							</dd>
					</dl>
<!--
EOT;
}print<<<EOT
-->
			</div>
<!--
EOT;
}elseif($randTools){print<<<EOT
-->
			<h5 class="h5"><span class="fr"><a href="profile.php?action=toolcenter" class="s6">更多</a></span><strong class="mr10"><a href="profile.php?action=toolcenter" class="s6">道具交易</a></strong></h5>
			<div class="dlC mb10">
<!--
EOT;
foreach($randTools as $key => $value){print<<<EOT
-->
					<dl class="cc dl">
							<dt class="dt">
									<a href="profile.php?action=toolcenter&job=buy&id={$value[id]}" class="img_50"><i><img src="$value[logo]" width="48" height="48" /></i></a>
							</dt>
							<dd class="dd">
									<p><a href="profile.php?action=toolcenter&job=buy&id={$value[id]}" class="b">$value[name]</a></p>
									<p title="$value[descrip]">$value[subdescrip]</p>
									<p><a href="profile.php?action=toolcenter&job=buy&id={$value[id]}" class="mr10 s7">购买</a></p>
							</dd>
					</dl>
<!--
EOT;
}print<<<EOT
-->
			</div>
<!--
EOT;
}print<<<EOT
-->
<script language="JavaScript">
function checkset(tool_msg){
	if(!confirm('使用该道具' +tool_msg+' 确认要使用这个道具？')){
		return false;
	}
}
</script>
<!--
EOT;
if ($recommendUsers) {print <<<EOT
-->
			<h5 class="h5 mb5">
<!--
EOT;
if (count($recommendUsers) >=3) {print <<<EOT
-->
			<span class="fr"><a href="u.php?a=friend&type=find" class="s6">更多</a></span>
<!--
EOT;
}print <<<EOT
-->
			<strong class="mr10">可能感兴趣的人</strong></h5>
			<div class="dlC mb10">
<!--
EOT;
foreach($recommendUsers as $member) {print <<<EOT
-->
					<dl class="cc dl">
							<dt class="dt">
									<a href="u.php?uid={$member[uid]}" class="img_50"><i><img src="{$member[face]}" width="48" height="48" /></i></a>
							</dt>
							<dd class="dd">
									<p><a href="u.php?uid={$member[uid]}" class="b">{$member[username]}</a></p>
<!--
EOT;
if ($member[honor]) {print <<<EOT
-->
									<div class="lh_18">{$member[honor]}</div>
<!--
EOT;
} else {print <<<EOT
-->
									<div class="lh_18">该用户暂无签名</div>
<!--
EOT;
}print <<<EOT
-->
									<a href="javascript:;" class="s7 follow" onclick="return Attention.add(this,'{$member['uid']}',1)">加关注</a>
									<!--p class="gray"><a href="pw_ajax.php?action=addattention&touid=5" onclick="return ajaxurl(this);" class="fr">[关注此人]</a>人气: <strong class="s2">1325</strong></p-->
							</dd>
					</dl>
<!--
EOT;
}print <<<EOT
-->
			</div>
<!--
EOT;
}if(empty($space[visits])){
$space[visits]="0";
}print <<<EOT
-->              
			<h5 class="h5 mb5"><span class="fr">累积访客($space[visits])</span><strong class="mr10">最近访客</strong></h5>
			<div class="dlC mb10">
<!--
EOT;
if (empty($latestVisits)) {
print <<<EOT
-->
					<div class="p10">暂无访客，<a href="u.php?a=friend&type=find">加几个好友</a>吧！</div>
<!--
EOT;
} else {
foreach ($latestVisits as $visitor) {
if (is_array($visitor)) {
$dateString = get_date($visitor['timestamp'], 'Y-m-d H:i');
print <<<EOT
-->
					<dl class="cc dl">
							<dt class="dt">
									<a href="u.php?uid={$visitor[uid]}" class="img_50"><i><img src="{$visitor[icon]}" width="48" height="48" /></i></a>
							</dt>
							<dd class="dd">
									<p><a href="u.php?uid={$visitor[uid]}" class="b">{$visitor[username]}</a></p>
<!--
EOT;
if ($visitor[honor]) {
print <<<EOT
-->
									<p class="lh_18">{$visitor[honor]}</p>
<!--
EOT;
} else {print <<<EOT
-->
									<div class="lh_18">该用户暂无签名</div>
<!--
EOT;
}print <<<EOT
--> 
									<p class="gray"><a href="u.php?uid={$visitor[uid]}" class="fr s7">回访</a><span title="$dateString">{$visitor[visittime]}</span></p>
							</dd>
					</dl>
<!--
EOT;
}}}
print <<<EOT
-->
			</div>
		</div>
	</div>
	<div class="c"></div>
</div>
<script>
var td_setMenu = {pz : 21}
getObj('myFace').onmouseover = function() {displayElement('toModifyFace', true);}
getObj('myFace').onmouseout = function() {displayElement('toModifyFace', false);}
function applyJob(jobId) {
	var url = 'jobcenter.php?action=apply&verify=' + verifyhash;
	ajax.send(url, "&id="+jobId+"&step=2", function() {
		var response = eval(ajax.request.responseText)[0];
		if (response['flag']) {
			showDialog("success", response['message']);
		} else {
			showDialog("error", response['message']);
		}
	});
}
function gainJobAward(jobId) {
	var url = 'jobcenter.php?action=gain&verify=' + verifyhash;;
	var _this = this;
	ajax.send(url, "&id="+jobId+"&step=2", function() {
		var response = eval(ajax.request.responseText)[0];
		if (response['flag']) {
			showDialog("success",response['message']);
		} else {
			showDialog("error",response['message']);
		}
	});	
}
function noticeJobCondition(jobId, conditionNotice) {
	var url = 'jobcenter.php?action=start&id='+jobId;
	var _this = this;
	ajax.send(url, "&ajax=1", function() {
		showDialog("success", conditionNotice);
	});
}


function display(obj,ctr){
	var message = getObj(ctr);
	var style = message.style;
	if(style.display == "none"){
		style.display = "block";
		obj.innerHTML = "收起" ;
		obj.className = 'fold';
	}else{
		style.display = "none";
		obj.innerHTML = "展开";
		obj.className = 'unfold';
	}
	
}

function replay(allid,current,obj){
	var prefix = "replay";
	var replayid = getObj(prefix+'_'+current);	
	var replay = getObj(prefix);
	var replayContent = getObj('atc_content');
	replayContent.value = '';
	replayid.style.display = 'block';
	replayid.appendChild(replay);
	for(var i =0;i<allid.length;i++){
		if(allid[i] != current){
			getObj(prefix+'_'+allid[i]).innerHTML = '';
			getObj('span_'+allid[i]).style.display = 'block';
		}
	}
	obj.style.display = 'none';
}

function changeStatus(url,rid,className){
	var httpUrl = url;
	var tipId = 'tip_';
	var optId = 'opt_';
	var skipId = 'skip_';
	var pid = '';
	function callback(){
			var tip = getObj(tipId+rid);
			var opt = getObj(optId+rid);
			var skip = getObj(skipId+rid);
			tip.className=className;
			tip.innerHTML=ajax.request.responseText;
			opt.style.display='none';
			skip.value = 'true';
			delDom(rid,1000);	
	}
	if(className == 'ignoreTip'){
		showDialog('confirm','你确定要忽略这些请求吗?',0,function(){
			ajax.send(httpUrl,'',callback,'','',true);})
	}else{
		ajax.send(httpUrl,'',callback,'','',true);
	}
	
}

function del(rid){
	var url = 'message.php?&type=ajax&action=del&rids[]='+rid;
	showDialog('confirm','确定要删除该消息?',0,function(){
		ajax.send(url,'',function(){delDom(rid,100)})
	});
}

function delDom(rid,timer){
	window.setTimeout(function(){getObj('message').removeChild(getObj('dl_'+rid))},timer);	
}
</script>
<script language="javascript" src="u/js/friend.js"></script>
<!--
EOT;
$o_weibopost == '0' && include printEot('writesmile');
print <<<EOT
-->
<!--
EOT;
require_once(uTemplate::printEot('footer'));
?>-->